﻿namespace HuaWei
{
    using DevExpress.Utils;
    using DevExpress.XtraEditors;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraEditors.Mask;
    using DevExpress.XtraEditors.Repository;
    using DevExpress.XtraTab;
    using DevExpress.XtraTreeList;
    using DevExpress.XtraTreeList.Columns;
    using DevExpress.XtraTreeList.Nodes;
    using HuaWei.CommClass;
    using HuaWei.CommComp;
    using HuaWei.Common;
    using HuaWei.DAI;
    using HuaWei.Windows.Forms;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Runtime.InteropServices;
    using System.Windows.Forms;

    public class FrmGLYSZ : Form
    {
        private BindingSource bindingSource;
        private BindingSource bindingSource1;
        private BindingSource bindingSource2;
        private BindingSource bindingSource3;
        private BindingSource bindingSource4;
        private SimpleButton btnAddChildJG;
        private SimpleButton btnAddJG;
        private SimpleButton btnDelJG;
        private Button btnExport;
        private SimpleButton btnQDWH;
        private ComboBoxEdit cboKHBLJ;
        private TreeListColumn colID;
        private TreeListColumn colMC;
        private TreeListColumn colXMID;
        private TreeListColumn colYZID;
        private TreeListColumn colZZMC;
        private ComboBoxEdit comboBoxEdit;
        private ComboBoxEdit comboBoxEdit1;
        private ComboBoxEdit comboBoxEdit2;
        private DataSet dataSet = new DataSet();
        private HuaWei.Common.dataSets1 dataSets1;
        private DataTable dataTable = null;
        private DateEdit dateEdit1;
        private DateEdit dateEdit2;
        private DateEdit dateEdit3;
        private DateEdit dateEdit4;
        private TextEdit dateEdit5;
        private ComboBoxEdit edtJGMC;
        private GroupControl groupControl1;
        private GroupControl groupControl4;
        private TextEdit HqeQbQlxEb;
        private IContainer icontainer = null;
        private ImageList imageList;
        private LabelControl labelControl1;
        private LabelControl labelControl10;
        private LabelControl labelControl11;
        private LabelControl labelControl13;
        private LabelControl labelControl14;
        private LabelControl labelControl15;
        private LabelControl labelControl16;
        private LabelControl labelControl17;
        private LabelControl labelControl18;
        private LabelControl labelControl19;
        private LabelControl labelControl2;
        private LabelControl labelControl20;
        private LabelControl labelControl21;
        private LabelControl labelControl22;
        private LabelControl labelControl23;
        private LabelControl labelControl24;
        private LabelControl labelControl25;
        private LabelControl labelControl26;
        private LabelControl labelControl27;
        private LabelControl labelControl28;
        private LabelControl labelControl29;
        private LabelControl labelControl3;
        private LabelControl labelControl30;
        private LabelControl labelControl31;
        private LabelControl labelControl32;
        private LabelControl labelControl33;
        private LabelControl labelControl34;
        private LabelControl labelControl35;
        private LabelControl labelControl4;
        private LabelControl labelControl5;
        private LabelControl labelControl6;
        private LabelControl labelControl7;
        private LabelControl labelControl8;
        private LabelControl labelControl9;
        private LabelControl lblDXJE;
        private LabelControl lblMsg;
        private MemoEdit memoEdit1;
        private MemoEdit memoEdit2;
        private MemoEdit memoEdit3;
        private MemoEdit memoEdit4;
        private MemoEdit memoEdit5;
        private MemoEdit memoEdit6;
        private TreeListColumn onypCxUys;
        private Panel panel1;
        private PanelControl panelControl2;
        private PanelControl panelControl3;
        private PanelControl panelControl4;
        private PanelControl panelControl5;
        private PanelControl panelControl6;
        private PanelControl plMsg;
        private RepositoryItemComboBox repositoryItemComboBox1;
        private RepositoryItemImageComboBox repositoryItemImageComboBox2;
        private RepositoryItemLookUpEdit repositoryItemLookUpEdit1;
        private SimpleButton simpleButton1;
        private SplitterControl splitterControl1;
        private TextEdit textEdit;
        private TextEdit textEdit1;
        private TextEdit textEdit10;
        private TextEdit textEdit11;
        private TextEdit textEdit12;
        private TextEdit textEdit13;
        private TextEdit textEdit14;
        private TextEdit textEdit15;
        private TextEdit textEdit16;
        private TextEdit textEdit2;
        private TextEdit textEdit3;
        private TextEdit textEdit4;
        private TextEdit textEdit5;
        private TextEdit textEdit6;
        private TextEdit textEdit7;
        private TextEdit textEdit8;
        private TreeList tlXMXX;
        private TreeList tlZZJGXX;
        private TreeListColumn treeListColumn1;
        private XtraTabControl xtraTabControl1;
        private XtraTabControl xtraTabControl2;
        private XtraTabPage xtraTabPage1;
        private XtraTabPage xtraTabPage2;
        private XtraTabPage xtraTabPage3;
        private LabelControl ylcQheaGue;

        public FrmGLYSZ()
        {
            this.InitializeComponent();
        }

        private void bindingSource_PositionChanged(object sender, EventArgs e)
        {
            this.method7();
            this.tlZZJGXX.ExpandAll();
            this.method3();
        }

        private void bindingSource1_PositionChanged(object sender, EventArgs e)
        {
            this.method3();
            string objId = DHelp.GetObjId(this.bindingSource1);
            this.bindingSource4.Filter = "bdid='" + objId + "'";
            this.bindingSource3.Filter = "id='" + objId + "'";
            string str2 = DHelp.GetObjValue(this.bindingSource1, "jglx", false);
            if (!str2.Equals(""))
            {
                this.xtraTabPage2.PageVisible = ((JGLX) Convert.ToInt16(str2)).Equals(JGLX.CBR);
                this.xtraTabControl2.SelectedTabPageIndex = 0;
            }
        }

        private void btnAddChildJG_Click(object sender, EventArgs e)
        {
            string str = "";
            if (this.tlZZJGXX.FocusedNode != null)
            {
                string str2 = DHelp.GetObjValue(this.bindingSource1, "id", false);
                str = DHelp.GetObjValue(this.bindingSource1, "levelCode", false);
                str = this.method15(str2, str);
                this.method14(true, str2, str);
                this.tlZZJGXX.ShowEditor();
            }
            else
            {
                str = this.method15("-1", "");
                this.method14(false, "-1", str);
            }
        }

        private void btnAddJG_Click(object sender, EventArgs e)
        {
            string str = "";
            string str2 = "";
            if (this.tlZZJGXX.FocusedNode != null)
            {
                if (this.tlZZJGXX.FocusedNode.ParentNode == null)
                {
                    str2 = this.method15("-1", "");
                    this.method14(false, "-1", str2);
                }
                else
                {
                    str = DHelp.GetObjValue(this.bindingSource1, "PID", false);
                    str2 = DHelp.GetObjValue(this.bindingSource1, "levelCode", false);
                    str2 = str2.Substring(0, str2.Length - 3);
                    str2 = this.method15(str, str2);
                    this.method14(true, str, str2);
                }
            }
            else
            {
                str2 = this.method15("-1", "");
                this.method14(false, "-1", str2);
            }
            this.tlZZJGXX.ShowEditor();
        }

        private void btnDelJG_Click(object sender, EventArgs e)
        {
            TreeListNode focusedNode = this.tlZZJGXX.FocusedNode;
            if (focusedNode != null)
            {
                if (focusedNode[2].Equals(2))
                {
                    MsgBox.ShowMsg("当前标段已设置清单，请删除所有清单后继续此操作！");
                }
                else if (!focusedNode.HasChildren)
                {
                    DHelp.DelCurRow(this.bindingSource1);
                }
                else
                {
                    MsgBox.ShowMsg("请删除所有子字点后继续此操作");
                }
            }
        }

        private void btnExport_Click(object sender, EventArgs e)
        {
            this.lblMsg.Visible = !this.method4();
        }

        private void btnQDWH_Click(object sender, EventArgs e)
        {
            TreeListNode focusedNode = this.tlZZJGXX.FocusedNode;
            if (!focusedNode[2].Equals("2"))
            {
                MsgBox.ShowMsg("当前选择不是标段，请重新选择！");
            }
            else
            {
                string bdid = focusedNode[0].ToString();
                string xmid = focusedNode[3].ToString();
                FrmQDWH mqdwh = new FrmQDWH();
                int yjbfs = CHelp.ConvertInt(DHelp.GetObjValue(this.bindingSource3, "YJBFS", false), 100);
                mqdwh.IniData(xmid, bdid, yjbfs);
                if (mqdwh.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    this.method10(false, 0M, 0M);
                    this.method3();
                }
            }
        }

        private void cboKHBLJ_ButtonClick(object sender, ButtonPressedEventArgs e)
        {
            if (e.Button.Index.Equals(1))
            {
                this.method13();
            }
        }

        private void comboBoxEdit_ButtonClick(object sender, ButtonPressedEventArgs e)
        {
            if (e.Button.Index.Equals(1))
            {
                this.method9();
            }
        }

        private void comboBoxEdit1_ButtonClick(object sender, ButtonPressedEventArgs e)
        {
            if (e.Button.Index.Equals(1))
            {
                this.method12();
            }
        }

        private void comboBoxEdit2_ButtonClick(object sender, ButtonPressedEventArgs e)
        {
            if (e.Button.Index.Equals(1))
            {
                this.method11();
            }
        }

        protected override void DefWndProc(ref Message m)
        {
            if (m.Msg != 0x61)
            {
                base.DefWndProc(ref m);
            }
            else
            {
                this.method3();
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.icontainer != null))
            {
                this.icontainer.Dispose();
            }
            base.Dispose(disposing);
        }

        private void edtJGMC_ButtonClick(object sender, ButtonPressedEventArgs e)
        {
            if (this.bindingSource1.List.Count > 0)
            {
                if (this.method2() != null)
                {
                    FrmBSJG mbsjg = new FrmBSJG();
                    mbsjg.SetBs(this.dataTable);
                    if (mbsjg.ShowDialog().Equals(DialogResult.OK))
                    {
                        DataRow dataRow = DHelp.GetDataRow(this.bindingSource4);
                        dataRow["JGID"] = mbsjg.ID;
                        dataRow["JGMC"] = mbsjg.JGMC;
                        dataRow.EndEdit();
                    }
                }
            }
            else
            {
                MsgBox.ShowMsg("标段列表不能为空，请修正后继续！");
            }
        }

        private void FrmGLYSZ_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (this.method3())
            {
                MsgBox.ShowMsg("机构信息已发生改变，请重新发送机构数据包！！");
            }
        }

        private void FrmGLYSZ_Load(object sender, EventArgs e)
        {
            this.method1();
            Class39.lquywmUul(this.onypCxUys);
        }

        private void HqeQbQlxEb_ParseEditValue(object sender, ConvertEditValueEventArgs e)
        {
            e.Value = Class28.smethod15(e.Value.ToString());
        }

        private void InitializeComponent()
        {
            this.icontainer = new Container();
            SerializableAppearanceObject appearance = new SerializableAppearanceObject();
            this.plMsg = new PanelControl();
            this.btnExport = new Button();
            this.lblMsg = new LabelControl();
            this.groupControl1 = new GroupControl();
            this.tlXMXX = new TreeList();
            this.colMC = new TreeListColumn();
            this.bindingSource = new BindingSource(this.icontainer);
            this.dataSets1 = new HuaWei.Common.dataSets1();
            this.repositoryItemImageComboBox2 = new RepositoryItemImageComboBox();
            this.bindingSource1 = new BindingSource(this.icontainer);
            this.groupControl4 = new GroupControl();
            this.xtraTabControl2 = new XtraTabControl();
            this.xtraTabPage2 = new XtraTabPage();
            this.panelControl5 = new PanelControl();
            this.ylcQheaGue = new LabelControl();
            this.labelControl11 = new LabelControl();
            this.labelControl10 = new LabelControl();
            this.labelControl9 = new LabelControl();
            this.comboBoxEdit = new ComboBoxEdit();
            this.bindingSource3 = new BindingSource(this.icontainer);
            this.memoEdit6 = new MemoEdit();
            this.comboBoxEdit2 = new ComboBoxEdit();
            this.memoEdit5 = new MemoEdit();
            this.comboBoxEdit1 = new ComboBoxEdit();
            this.memoEdit4 = new MemoEdit();
            this.cboKHBLJ = new ComboBoxEdit();
            this.memoEdit3 = new MemoEdit();
            this.panelControl2 = new PanelControl();
            this.labelControl34 = new LabelControl();
            this.labelControl35 = new LabelControl();
            this.textEdit16 = new TextEdit();
            this.bindingSource2 = new BindingSource(this.icontainer);
            this.textEdit12 = new TextEdit();
            this.labelControl28 = new LabelControl();
            this.labelControl25 = new LabelControl();
            this.labelControl24 = new LabelControl();
            this.labelControl23 = new LabelControl();
            this.textEdit = new TextEdit();
            this.labelControl22 = new LabelControl();
            this.HqeQbQlxEb = new TextEdit();
            this.textEdit7 = new TextEdit();
            this.labelControl21 = new LabelControl();
            this.labelControl20 = new LabelControl();
            this.labelControl18 = new LabelControl();
            this.dateEdit3 = new DateEdit();
            this.labelControl19 = new LabelControl();
            this.dateEdit4 = new DateEdit();
            this.labelControl17 = new LabelControl();
            this.dateEdit5 = new TextEdit();
            this.xtraTabPage3 = new XtraTabPage();
            this.memoEdit1 = new MemoEdit();
            this.panelControl6 = new PanelControl();
            this.labelControl30 = new LabelControl();
            this.textEdit14 = new TextEdit();
            this.bindingSource4 = new BindingSource(this.icontainer);
            this.labelControl29 = new LabelControl();
            this.textEdit13 = new TextEdit();
            this.labelControl26 = new LabelControl();
            this.textEdit10 = new TextEdit();
            this.labelControl16 = new LabelControl();
            this.textEdit8 = new TextEdit();
            this.panelControl3 = new PanelControl();
            this.tlZZJGXX = new TreeList();
            this.colID = new TreeListColumn();
            this.colZZMC = new TreeListColumn();
            this.onypCxUys = new TreeListColumn();
            this.repositoryItemLookUpEdit1 = new RepositoryItemLookUpEdit();
            this.colXMID = new TreeListColumn();
            this.colYZID = new TreeListColumn();
            this.treeListColumn1 = new TreeListColumn();
            this.repositoryItemComboBox1 = new RepositoryItemComboBox();
            this.panelControl4 = new PanelControl();
            this.btnDelJG = new SimpleButton();
            this.btnAddChildJG = new SimpleButton();
            this.btnAddJG = new SimpleButton();
            this.btnQDWH = new SimpleButton();
            this.simpleButton1 = new SimpleButton();
            this.panel1 = new Panel();
            this.labelControl31 = new LabelControl();
            this.edtJGMC = new ComboBoxEdit();
            this.imageList = new ImageList(this.icontainer);
            this.xtraTabControl1 = new XtraTabControl();
            this.xtraTabPage1 = new XtraTabPage();
            this.labelControl33 = new LabelControl();
            this.labelControl32 = new LabelControl();
            this.textEdit15 = new TextEdit();
            this.labelControl27 = new LabelControl();
            this.textEdit11 = new TextEdit();
            this.lblDXJE = new LabelControl();
            this.labelControl15 = new LabelControl();
            this.labelControl14 = new LabelControl();
            this.textEdit6 = new TextEdit();
            this.labelControl13 = new LabelControl();
            this.memoEdit2 = new MemoEdit();
            this.labelControl8 = new LabelControl();
            this.textEdit1 = new TextEdit();
            this.labelControl7 = new LabelControl();
            this.textEdit2 = new TextEdit();
            this.labelControl6 = new LabelControl();
            this.textEdit3 = new TextEdit();
            this.labelControl5 = new LabelControl();
            this.dateEdit1 = new DateEdit();
            this.labelControl4 = new LabelControl();
            this.dateEdit2 = new DateEdit();
            this.labelControl3 = new LabelControl();
            this.textEdit4 = new TextEdit();
            this.labelControl2 = new LabelControl();
            this.textEdit5 = new TextEdit();
            this.labelControl1 = new LabelControl();
            this.splitterControl1 = new SplitterControl();
            this.plMsg.BeginInit();
            this.plMsg.SuspendLayout();
            this.groupControl1.BeginInit();
            this.groupControl1.SuspendLayout();
            this.tlXMXX.BeginInit();
            ((ISupportInitialize) this.bindingSource).BeginInit();
            this.dataSets1.BeginInit();
            this.repositoryItemImageComboBox2.BeginInit();
            ((ISupportInitialize) this.bindingSource1).BeginInit();
            this.groupControl4.BeginInit();
            this.groupControl4.SuspendLayout();
            this.xtraTabControl2.BeginInit();
            this.xtraTabControl2.SuspendLayout();
            this.xtraTabPage2.SuspendLayout();
            this.panelControl5.BeginInit();
            this.panelControl5.SuspendLayout();
            this.comboBoxEdit.Properties.BeginInit();
            ((ISupportInitialize) this.bindingSource3).BeginInit();
            this.memoEdit6.Properties.BeginInit();
            this.comboBoxEdit2.Properties.BeginInit();
            this.memoEdit5.Properties.BeginInit();
            this.comboBoxEdit1.Properties.BeginInit();
            this.memoEdit4.Properties.BeginInit();
            this.cboKHBLJ.Properties.BeginInit();
            this.memoEdit3.Properties.BeginInit();
            this.panelControl2.BeginInit();
            this.panelControl2.SuspendLayout();
            this.textEdit16.Properties.BeginInit();
            ((ISupportInitialize) this.bindingSource2).BeginInit();
            this.textEdit12.Properties.BeginInit();
            this.textEdit.Properties.BeginInit();
            this.HqeQbQlxEb.Properties.BeginInit();
            this.textEdit7.Properties.BeginInit();
            this.dateEdit3.Properties.VistaTimeProperties.BeginInit();
            this.dateEdit3.Properties.BeginInit();
            this.dateEdit4.Properties.VistaTimeProperties.BeginInit();
            this.dateEdit4.Properties.BeginInit();
            this.dateEdit5.Properties.BeginInit();
            this.xtraTabPage3.SuspendLayout();
            this.memoEdit1.Properties.BeginInit();
            this.panelControl6.BeginInit();
            this.panelControl6.SuspendLayout();
            this.textEdit14.Properties.BeginInit();
            ((ISupportInitialize) this.bindingSource4).BeginInit();
            this.textEdit13.Properties.BeginInit();
            this.textEdit10.Properties.BeginInit();
            this.textEdit8.Properties.BeginInit();
            this.panelControl3.BeginInit();
            this.panelControl3.SuspendLayout();
            this.tlZZJGXX.BeginInit();
            this.repositoryItemLookUpEdit1.BeginInit();
            this.repositoryItemComboBox1.BeginInit();
            this.panelControl4.BeginInit();
            this.panelControl4.SuspendLayout();
            this.panel1.SuspendLayout();
            this.edtJGMC.Properties.BeginInit();
            this.xtraTabControl1.BeginInit();
            this.xtraTabControl1.SuspendLayout();
            this.xtraTabPage1.SuspendLayout();
            this.textEdit15.Properties.BeginInit();
            this.textEdit11.Properties.BeginInit();
            this.textEdit6.Properties.BeginInit();
            this.memoEdit2.Properties.BeginInit();
            this.textEdit1.Properties.BeginInit();
            this.textEdit2.Properties.BeginInit();
            this.textEdit3.Properties.BeginInit();
            this.dateEdit1.Properties.VistaTimeProperties.BeginInit();
            this.dateEdit1.Properties.BeginInit();
            this.dateEdit2.Properties.VistaTimeProperties.BeginInit();
            this.dateEdit2.Properties.BeginInit();
            this.textEdit4.Properties.BeginInit();
            this.textEdit5.Properties.BeginInit();
            base.SuspendLayout();
            this.plMsg.Controls.Add(this.btnExport);
            this.plMsg.Controls.Add(this.lblMsg);
            this.plMsg.Dock = DockStyle.Top;
            this.plMsg.Location = new Point(0, 0);
            this.plMsg.Name = "plMsg";
            this.plMsg.Size = new Size(0x485, 0x17);
            this.plMsg.TabIndex = 0;
            this.btnExport.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.btnExport.Location = new Point(0x432, 0);
            this.btnExport.Name = "btnExport";
            this.btnExport.Size = new Size(0x4b, 0x17);
            this.btnExport.TabIndex = 0x23;
            this.btnExport.Text = "数据下达";
            this.btnExport.UseVisualStyleBackColor = true;
            this.btnExport.Click += new EventHandler(this.btnExport_Click);
            this.lblMsg.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lblMsg.Appearance.Font = new Font("Tahoma", 11f);
            this.lblMsg.Appearance.ForeColor = Color.Red;
            this.lblMsg.Appearance.Options.UseFont = true;
            this.lblMsg.Appearance.Options.UseForeColor = true;
            this.lblMsg.Location = new Point(730, 5);
            this.lblMsg.Name = "lblMsg";
            this.lblMsg.Size = new Size(330, 0x12);
            this.lblMsg.TabIndex = 0x22;
            this.lblMsg.Text = "机构信息已发生改变，请重新发送机构数据包！！";
            this.lblMsg.Visible = false;
            this.groupControl1.Controls.Add(this.tlXMXX);
            this.groupControl1.Dock = DockStyle.Left;
            this.groupControl1.Location = new Point(0, 0x17);
            this.groupControl1.Name = "groupControl1";
            this.groupControl1.Size = new Size(0xd9, 0x25d);
            this.groupControl1.TabIndex = 1;
            this.groupControl1.Text = "项目信息";
            this.tlXMXX.Columns.AddRange(new TreeListColumn[] { this.colMC });
            this.tlXMXX.DataSource = this.bindingSource;
            this.tlXMXX.Dock = DockStyle.Fill;
            this.tlXMXX.ImageIndexFieldName = "";
            this.tlXMXX.Location = new Point(2, 0x17);
            this.tlXMXX.Name = "tlXMXX";
            this.tlXMXX.OptionsBehavior.Editable = false;
            this.tlXMXX.OptionsView.ShowColumns = false;
            this.tlXMXX.ParentFieldName = "PID";
            this.tlXMXX.PreviewFieldName = "XMMC";
            this.tlXMXX.RepositoryItems.AddRange(new RepositoryItem[] { this.repositoryItemImageComboBox2 });
            this.tlXMXX.Size = new Size(0xd5, 580);
            this.tlXMXX.TabIndex = 0;
            this.tlXMXX.TreeLineStyle = LineStyle.None;
            this.colMC.FieldName = "XMMC";
            this.colMC.Name = "colMC";
            this.colMC.Visible = true;
            this.colMC.VisibleIndex = 0;
            this.colMC.Width = 0x60;
            this.bindingSource.DataMember = "XMJBXX";
            this.bindingSource.DataSource = this.dataSets1;
            this.dataSets1.DataSetName = "dataSets1";
            this.dataSets1.SchemaSerializationMode = SchemaSerializationMode.IncludeSchema;
            this.repositoryItemImageComboBox2.AutoHeight = false;
            this.repositoryItemImageComboBox2.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repositoryItemImageComboBox2.Items.AddRange(new ImageComboBoxItem[] { new ImageComboBoxItem("", "1", 1), new ImageComboBoxItem("", "2", 5), new ImageComboBoxItem("", "3", 11) });
            this.repositoryItemImageComboBox2.Name = "repositoryItemImageComboBox2";
            this.bindingSource1.DataMember = "ZZJGXX";
            this.bindingSource1.DataSource = this.dataSets1;
            this.bindingSource1.PositionChanged += new EventHandler(this.bindingSource1_PositionChanged);
            this.groupControl4.Controls.Add(this.xtraTabControl2);
            this.groupControl4.Controls.Add(this.panelControl6);
            this.groupControl4.Controls.Add(this.panelControl3);
            this.groupControl4.Dock = DockStyle.Fill;
            this.groupControl4.Location = new Point(0xdf, 0xd6);
            this.groupControl4.Name = "groupControl4";
            this.groupControl4.Size = new Size(0x3a6, 0x19e);
            this.groupControl4.TabIndex = 0x13;
            this.groupControl4.Text = "标段列表";
            this.xtraTabControl2.Dock = DockStyle.Fill;
            this.xtraTabControl2.Location = new Point(0x17a, 0x69);
            this.xtraTabControl2.Name = "xtraTabControl2";
            this.xtraTabControl2.SelectedTabPage = this.xtraTabPage2;
            this.xtraTabControl2.Size = new Size(0x22a, 0x133);
            this.xtraTabControl2.TabIndex = 6;
            this.xtraTabControl2.TabPages.AddRange(new XtraTabPage[] { this.xtraTabPage2, this.xtraTabPage3 });
            this.xtraTabPage2.Controls.Add(this.panelControl5);
            this.xtraTabPage2.Controls.Add(this.panelControl2);
            this.xtraTabPage2.Name = "xtraTabPage2";
            this.xtraTabPage2.Size = new Size(0x223, 0x115);
            this.xtraTabPage2.Text = "标段基本信息";
            this.panelControl5.Controls.Add(this.ylcQheaGue);
            this.panelControl5.Controls.Add(this.labelControl11);
            this.panelControl5.Controls.Add(this.labelControl10);
            this.panelControl5.Controls.Add(this.labelControl9);
            this.panelControl5.Controls.Add(this.comboBoxEdit);
            this.panelControl5.Controls.Add(this.memoEdit6);
            this.panelControl5.Controls.Add(this.comboBoxEdit2);
            this.panelControl5.Controls.Add(this.memoEdit5);
            this.panelControl5.Controls.Add(this.comboBoxEdit1);
            this.panelControl5.Controls.Add(this.memoEdit4);
            this.panelControl5.Controls.Add(this.cboKHBLJ);
            this.panelControl5.Controls.Add(this.memoEdit3);
            this.panelControl5.Dock = DockStyle.Fill;
            this.panelControl5.Location = new Point(0, 0x68);
            this.panelControl5.Name = "panelControl5";
            this.panelControl5.Size = new Size(0x223, 0xad);
            this.panelControl5.TabIndex = 0x3b;
            this.ylcQheaGue.Location = new Point(0x16, 0xc9);
            this.ylcQheaGue.Name = "labelControl12";
            this.ylcQheaGue.Size = new Size(60, 14);
            this.ylcQheaGue.TabIndex = 0x3e;
            this.ylcQheaGue.Text = "扣回保留金";
            this.labelControl11.Location = new Point(0x22, 13);
            this.labelControl11.Name = "labelControl11";
            this.labelControl11.Size = new Size(0x30, 14);
            this.labelControl11.TabIndex = 0x3d;
            this.labelControl11.Text = "价格调整";
            this.labelControl10.Location = new Point(10, 0x89);
            this.labelControl10.Name = "labelControl10";
            this.labelControl10.Size = new Size(0x48, 14);
            this.labelControl10.TabIndex = 60;
            this.labelControl10.Text = "扣材料预付款";
            this.labelControl9.Location = new Point(10, 0x49);
            this.labelControl9.Name = "labelControl9";
            this.labelControl9.Size = new Size(0x48, 14);
            this.labelControl9.TabIndex = 0x3b;
            this.labelControl9.Text = "扣动员预付款";
            this.comboBoxEdit.DataBindings.Add(new Binding("EditValue", this.bindingSource3, "JGTZLX", true));
            this.comboBoxEdit.Location = new Point(0x58, 6);
            this.comboBoxEdit.Name = "cboJGTZLX";
            this.comboBoxEdit.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo), new EditorButton() });
            this.comboBoxEdit.Properties.Items.AddRange(new object[] { "", "黄冈模式调整" });
            this.comboBoxEdit.Size = new Size(0xd5, 0x15);
            this.comboBoxEdit.TabIndex = 0x2f;
            this.comboBoxEdit.ButtonClick += new ButtonPressedEventHandler(this.comboBoxEdit_ButtonClick);
            this.bindingSource3.DataMember = "ZZJGXXEX";
            this.bindingSource3.DataSource = this.dataSets1;
            this.memoEdit6.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.memoEdit6.DataBindings.Add(new Binding("EditValue", this.bindingSource3, "KHBLJLXBZ", true));
            this.memoEdit6.Location = new Point(0x58, 0xdd);
            this.memoEdit6.Name = "memoEdit6";
            this.memoEdit6.Size = new Size(0x1c5, 0x27);
            this.memoEdit6.TabIndex = 0x3a;
            this.comboBoxEdit2.DataBindings.Add(new Binding("EditValue", this.bindingSource3, "KDYYFKLX", true));
            this.comboBoxEdit2.Location = new Point(0x58, 70);
            this.comboBoxEdit2.Name = "comboBoxEdit2";
            this.comboBoxEdit2.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo), new EditorButton() });
            this.comboBoxEdit2.Properties.Items.AddRange(new object[] { "", "标准公式扣回" });
            this.comboBoxEdit2.Size = new Size(0xd5, 0x15);
            this.comboBoxEdit2.TabIndex = 0x30;
            this.comboBoxEdit2.ButtonClick += new ButtonPressedEventHandler(this.comboBoxEdit2_ButtonClick);
            this.memoEdit5.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.memoEdit5.DataBindings.Add(new Binding("EditValue", this.bindingSource3, "KCLYYKLXBZ", true));
            this.memoEdit5.Location = new Point(0x58, 0x9d);
            this.memoEdit5.Name = "memoEdit5";
            this.memoEdit5.Size = new Size(0x1c5, 0x27);
            this.memoEdit5.TabIndex = 0x39;
            this.comboBoxEdit1.DataBindings.Add(new Binding("EditValue", this.bindingSource3, "KCLYYKLX", true));
            this.comboBoxEdit1.Location = new Point(0x58, 0x86);
            this.comboBoxEdit1.Name = "cboKCLYFK";
            this.comboBoxEdit1.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo), new EditorButton() });
            this.comboBoxEdit1.Properties.Items.AddRange(new object[] { "", "隔期扣回" });
            this.comboBoxEdit1.Size = new Size(0xd5, 0x15);
            this.comboBoxEdit1.TabIndex = 0x33;
            this.comboBoxEdit1.ButtonClick += new ButtonPressedEventHandler(this.comboBoxEdit1_ButtonClick);
            this.memoEdit4.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.memoEdit4.DataBindings.Add(new Binding("EditValue", this.bindingSource3, "KDYYFKLXBZ", true));
            this.memoEdit4.Location = new Point(0x58, 0x5d);
            this.memoEdit4.Name = "memoEdit4";
            this.memoEdit4.Size = new Size(0x1c5, 0x27);
            this.memoEdit4.TabIndex = 0x38;
            this.cboKHBLJ.DataBindings.Add(new Binding("EditValue", this.bindingSource3, "KHBLJLX", true));
            this.cboKHBLJ.Location = new Point(0x58, 0xc6);
            this.cboKHBLJ.Name = "cboKHBLJ";
            this.cboKHBLJ.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo), new EditorButton() });
            this.cboKHBLJ.Properties.Items.AddRange(new object[] { "", "标准公式扣回" });
            this.cboKHBLJ.Size = new Size(0xd5, 0x15);
            this.cboKHBLJ.TabIndex = 0x36;
            this.cboKHBLJ.ButtonClick += new ButtonPressedEventHandler(this.cboKHBLJ_ButtonClick);
            this.memoEdit3.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.memoEdit3.DataBindings.Add(new Binding("EditValue", this.bindingSource3, "JGTZLXBZ", true));
            this.memoEdit3.Location = new Point(0x58, 0x1d);
            this.memoEdit3.Name = "memoEdit3";
            this.memoEdit3.Size = new Size(0x1c5, 0x27);
            this.memoEdit3.TabIndex = 0x37;
            this.panelControl2.Controls.Add(this.labelControl34);
            this.panelControl2.Controls.Add(this.labelControl35);
            this.panelControl2.Controls.Add(this.textEdit16);
            this.panelControl2.Controls.Add(this.textEdit12);
            this.panelControl2.Controls.Add(this.labelControl28);
            this.panelControl2.Controls.Add(this.labelControl25);
            this.panelControl2.Controls.Add(this.labelControl24);
            this.panelControl2.Controls.Add(this.labelControl23);
            this.panelControl2.Controls.Add(this.textEdit);
            this.panelControl2.Controls.Add(this.labelControl22);
            this.panelControl2.Controls.Add(this.HqeQbQlxEb);
            this.panelControl2.Controls.Add(this.textEdit7);
            this.panelControl2.Controls.Add(this.labelControl21);
            this.panelControl2.Controls.Add(this.labelControl20);
            this.panelControl2.Controls.Add(this.labelControl18);
            this.panelControl2.Controls.Add(this.dateEdit3);
            this.panelControl2.Controls.Add(this.labelControl19);
            this.panelControl2.Controls.Add(this.dateEdit4);
            this.panelControl2.Controls.Add(this.labelControl17);
            this.panelControl2.Controls.Add(this.dateEdit5);
            this.panelControl2.Dock = DockStyle.Top;
            this.panelControl2.Location = new Point(0, 0);
            this.panelControl2.Name = "panelControl2";
            this.panelControl2.Size = new Size(0x223, 0x68);
            this.panelControl2.TabIndex = 60;
            this.labelControl34.Location = new Point(0x1cf, 13);
            this.labelControl34.Name = "labelControl34";
            this.labelControl34.Size = new Size(0x18, 14);
            this.labelControl34.TabIndex = 70;
            this.labelControl34.Text = "公里";
            this.labelControl35.Location = new Point(0x15d, 13);
            this.labelControl35.Name = "labelControl35";
            this.labelControl35.Size = new Size(0x18, 14);
            this.labelControl35.TabIndex = 0x45;
            this.labelControl35.Text = "总长";
            this.textEdit16.DataBindings.Add(new Binding("EditValue", this.bindingSource3, "ZHZC", true));
            this.textEdit16.Location = new Point(380, 10);
            this.textEdit16.Name = "textEdit17";
            this.textEdit16.Size = new Size(0x4d, 0x15);
            this.textEdit16.TabIndex = 0x44;
            this.bindingSource2.DataMember = "XMJBXXEX";
            this.bindingSource2.DataSource = this.dataSets1;
            this.textEdit12.DataBindings.Add(new Binding("EditValue", this.bindingSource3, "JSZH", true));
            this.textEdit12.Location = new Point(0x107, 10);
            this.textEdit12.Name = "textEdit13";
            this.textEdit12.Size = new Size(80, 0x15);
            this.textEdit12.TabIndex = 0x43;
            this.textEdit12.ParseEditValue += new ConvertEditValueEventHandler(this.textEdit12_ParseEditValue);
            this.labelControl28.Location = new Point(0xcc, 13);
            this.labelControl28.Name = "labelControl28";
            this.labelControl28.Size = new Size(0x30, 14);
            this.labelControl28.TabIndex = 0x42;
            this.labelControl28.Text = "结束桩号";
            this.labelControl25.Location = new Point(0xbf, 60);
            this.labelControl25.Name = "labelControl25";
            this.labelControl25.Size = new Size(12, 14);
            this.labelControl25.TabIndex = 0x41;
            this.labelControl25.Text = "天";
            this.labelControl24.Location = new Point(0xac, 0x52);
            this.labelControl24.Name = "labelControl24";
            this.labelControl24.Size = new Size(12, 14);
            this.labelControl24.TabIndex = 0x40;
            this.labelControl24.Text = "%";
            this.labelControl23.Location = new Point(380, 60);
            this.labelControl23.Name = "labelControl23";
            this.labelControl23.Size = new Size(12, 14);
            this.labelControl23.TabIndex = 0x3f;
            this.labelControl23.Text = "%";
            this.textEdit.DataBindings.Add(new Binding("EditValue", this.bindingSource3, "CLDFBL", true));
            this.textEdit.Location = new Point(0x58, 0x4e);
            this.textEdit.Name = "textEdit10";
            this.textEdit.Size = new Size(0x51, 0x15);
            this.textEdit.TabIndex = 0x31;
            this.labelControl22.Location = new Point(5, 0x51);
            this.labelControl22.Name = "labelControl22";
            this.labelControl22.Size = new Size(0x48, 14);
            this.labelControl22.TabIndex = 0x30;
            this.labelControl22.Text = "材料垫付比例";
            this.HqeQbQlxEb.DataBindings.Add(new Binding("EditValue", this.bindingSource3, "KSZH", true));
            this.HqeQbQlxEb.Location = new Point(0x58, 10);
            this.HqeQbQlxEb.Name = "textEdit9";
            this.HqeQbQlxEb.Size = new Size(100, 0x15);
            this.HqeQbQlxEb.TabIndex = 0x2e;
            this.HqeQbQlxEb.ParseEditValue += new ConvertEditValueEventHandler(this.HqeQbQlxEb_ParseEditValue);
            this.textEdit7.DataBindings.Add(new Binding("EditValue", this.bindingSource3, "YJBFS", true));
            this.textEdit7.Location = new Point(0x12f, 0x38);
            this.textEdit7.Name = "textEdit7";
            this.textEdit7.Size = new Size(0x4a, 0x15);
            this.textEdit7.TabIndex = 0x2c;
            this.labelControl21.Location = new Point(0xd5, 0x3b);
            this.labelControl21.Name = "labelControl21";
            this.labelControl21.Size = new Size(0x54, 14);
            this.labelControl21.TabIndex = 0x2b;
            this.labelControl21.Text = "清单预警百分数";
            this.labelControl20.Location = new Point(0x11, 0x3b);
            this.labelControl20.Name = "labelControl20";
            this.labelControl20.Size = new Size(60, 14);
            this.labelControl20.TabIndex = 0x2a;
            this.labelControl20.Text = "项目总工期";
            this.labelControl18.Location = new Point(0xe1, 0x24);
            this.labelControl18.Name = "labelControl18";
            this.labelControl18.Size = new Size(0x48, 14);
            this.labelControl18.TabIndex = 0x29;
            this.labelControl18.Text = "计划完工日期";
            this.dateEdit3.DataBindings.Add(new Binding("EditValue", this.bindingSource3, "JHKGRQ", true));
            this.dateEdit3.EditValue = null;
            this.dateEdit3.Location = new Point(0x58, 0x21);
            this.dateEdit3.Name = "dateEdit3";
            this.dateEdit3.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.dateEdit3.Properties.VistaTimeProperties.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.dateEdit3.Size = new Size(100, 0x15);
            this.dateEdit3.TabIndex = 0x26;
            this.labelControl19.Location = new Point(5, 0x24);
            this.labelControl19.Name = "labelControl19";
            this.labelControl19.Size = new Size(0x48, 14);
            this.labelControl19.TabIndex = 40;
            this.labelControl19.Text = "计划开工日期";
            this.dateEdit4.DataBindings.Add(new Binding("EditValue", this.bindingSource3, "JHWGRQ", true));
            this.dateEdit4.EditValue = null;
            this.dateEdit4.Location = new Point(0x12f, 0x21);
            this.dateEdit4.Name = "dateEdit4";
            this.dateEdit4.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.dateEdit4.Properties.VistaTimeProperties.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.dateEdit4.Size = new Size(100, 0x15);
            this.dateEdit4.TabIndex = 0x27;
            this.labelControl17.Location = new Point(0x1d, 13);
            this.labelControl17.Name = "labelControl17";
            this.labelControl17.Size = new Size(0x30, 14);
            this.labelControl17.TabIndex = 1;
            this.labelControl17.Text = "开始桩号";
            this.dateEdit5.DataBindings.Add(new Binding("EditValue", this.bindingSource3, "XMGQ", true));
            this.dateEdit5.Location = new Point(0x58, 0x38);
            this.dateEdit5.Name = "dateEdit5";
            this.dateEdit5.Properties.DisplayFormat.FormatString = "d";
            this.dateEdit5.Properties.DisplayFormat.FormatType = FormatType.DateTime;
            this.dateEdit5.Properties.EditFormat.FormatString = "d";
            this.dateEdit5.Properties.EditFormat.FormatType = FormatType.DateTime;
            this.dateEdit5.Properties.Mask.EditMask = "d";
            this.dateEdit5.Properties.Mask.MaskType = MaskType.DateTime;
            this.dateEdit5.Properties.ReadOnly = true;
            this.dateEdit5.Size = new Size(100, 0x15);
            this.dateEdit5.TabIndex = 0x2f;
            this.xtraTabPage3.Controls.Add(this.memoEdit1);
            this.xtraTabPage3.Name = "xtraTabPage3";
            this.xtraTabPage3.Size = new Size(0x223, 0x115);
            this.xtraTabPage3.Text = "合同内容简介";
            this.memoEdit1.DataBindings.Add(new Binding("EditValue", this.bindingSource3, "BZ", true));
            this.memoEdit1.Dock = DockStyle.Fill;
            this.memoEdit1.Location = new Point(0, 0);
            this.memoEdit1.Name = "memoEdit1";
            this.memoEdit1.Size = new Size(0x223, 0x115);
            this.memoEdit1.TabIndex = 1;
            this.panelControl6.Controls.Add(this.labelControl30);
            this.panelControl6.Controls.Add(this.textEdit14);
            this.panelControl6.Controls.Add(this.labelControl29);
            this.panelControl6.Controls.Add(this.textEdit13);
            this.panelControl6.Controls.Add(this.labelControl26);
            this.panelControl6.Controls.Add(this.textEdit10);
            this.panelControl6.Controls.Add(this.labelControl16);
            this.panelControl6.Controls.Add(this.textEdit8);
            this.panelControl6.Dock = DockStyle.Top;
            this.panelControl6.Location = new Point(0x17a, 0x17);
            this.panelControl6.Name = "panelControl6";
            this.panelControl6.Size = new Size(0x22a, 0x52);
            this.panelControl6.TabIndex = 7;
            this.labelControl30.Location = new Point(0xee, 60);
            this.labelControl30.Name = "labelControl30";
            this.labelControl30.Size = new Size(60, 14);
            this.labelControl30.TabIndex = 50;
            this.labelControl30.Text = "管理员密码";
            this.textEdit14.DataBindings.Add(new Binding("EditValue", this.bindingSource4, "YHMM", true));
            this.textEdit14.Location = new Point(0x12b, 0x39);
            this.textEdit14.Name = "textEdit15";
            this.textEdit14.Size = new Size(0x85, 0x15);
            this.textEdit14.TabIndex = 0x33;
            this.bindingSource4.DataMember = "YHXX";
            this.bindingSource4.DataSource = this.dataSets1;
            this.labelControl29.Location = new Point(0x2a, 0x3b);
            this.labelControl29.Name = "labelControl29";
            this.labelControl29.Size = new Size(0x24, 14);
            this.labelControl29.TabIndex = 0x30;
            this.labelControl29.Text = "管理员";
            this.textEdit13.DataBindings.Add(new Binding("EditValue", this.bindingSource4, "YHMC", true));
            this.textEdit13.Location = new Point(0x59, 0x38);
            this.textEdit13.Name = "textEdit14";
            this.textEdit13.Size = new Size(0x85, 0x15);
            this.textEdit13.TabIndex = 0x31;
            this.labelControl26.Location = new Point(30, 0x21);
            this.labelControl26.Name = "labelControl26";
            this.labelControl26.Size = new Size(0x30, 14);
            this.labelControl26.TabIndex = 0x2e;
            this.labelControl26.Text = "合同编号";
            this.textEdit10.DataBindings.Add(new Binding("EditValue", this.bindingSource3, "HTBH", true));
            this.textEdit10.Location = new Point(0x59, 30);
            this.textEdit10.Name = "textEdit11";
            this.textEdit10.Size = new Size(0x157, 0x15);
            this.textEdit10.TabIndex = 0x2f;
            this.labelControl16.Location = new Point(6, 6);
            this.labelControl16.Name = "labelControl16";
            this.labelControl16.Size = new Size(0x48, 14);
            this.labelControl16.TabIndex = 0;
            this.labelControl16.Text = "合同单位名称";
            this.textEdit8.DataBindings.Add(new Binding("EditValue", this.bindingSource3, "HTDWMC", true));
            this.textEdit8.Location = new Point(0x59, 3);
            this.textEdit8.Name = "textEdit8";
            this.textEdit8.Size = new Size(0x157, 0x15);
            this.textEdit8.TabIndex = 0x2d;
            this.panelControl3.Controls.Add(this.tlZZJGXX);
            this.panelControl3.Controls.Add(this.panelControl4);
            this.panelControl3.Controls.Add(this.panel1);
            this.panelControl3.Dock = DockStyle.Left;
            this.panelControl3.Location = new Point(2, 0x17);
            this.panelControl3.Name = "panelControl3";
            this.panelControl3.Size = new Size(0x178, 0x185);
            this.panelControl3.TabIndex = 4;
            this.tlZZJGXX.Columns.AddRange(new TreeListColumn[] { this.colID, this.colZZMC, this.onypCxUys, this.colXMID, this.colYZID, this.treeListColumn1 });
            this.tlZZJGXX.DataSource = this.bindingSource1;
            this.tlZZJGXX.Dock = DockStyle.Fill;
            this.tlZZJGXX.ImageIndexFieldName = "JGLX";
            this.tlZZJGXX.Location = new Point(2, 0x1d);
            this.tlZZJGXX.Name = "tlZZJGXX";
            this.tlZZJGXX.OptionsView.ShowColumns = false;
            this.tlZZJGXX.ParentFieldName = "PID";
            this.tlZZJGXX.RepositoryItems.AddRange(new RepositoryItem[] { this.repositoryItemLookUpEdit1, this.repositoryItemComboBox1 });
            this.tlZZJGXX.Size = new Size(0x174, 0x142);
            this.tlZZJGXX.TabIndex = 0;
            this.colID.FieldName = "ID";
            this.colID.Name = "colID";
            this.colZZMC.FieldName = "MC";
            this.colZZMC.MinWidth = 0x23;
            this.colZZMC.Name = "colZZMC";
            this.colZZMC.Visible = true;
            this.colZZMC.VisibleIndex = 0;
            this.colZZMC.Width = 0x9e;
            this.onypCxUys.ColumnEdit = this.repositoryItemLookUpEdit1;
            this.onypCxUys.FieldName = "JGLX";
            this.onypCxUys.Name = "colJGLX";
            this.onypCxUys.Visible = true;
            this.onypCxUys.VisibleIndex = 1;
            this.onypCxUys.Width = 0x4e;
            this.repositoryItemLookUpEdit1.AutoHeight = false;
            this.repositoryItemLookUpEdit1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repositoryItemLookUpEdit1.Name = "repositoryItemLookUpEdit1";
            this.colXMID.FieldName = "XMID";
            this.colXMID.Name = "colXMID";
            this.colYZID.FieldName = "YZID";
            this.colYZID.Name = "colYZID";
            this.treeListColumn1.Caption = "treeListColumn1";
            this.treeListColumn1.FieldName = "LevelCode";
            this.treeListColumn1.Name = "treeListColumn1";
            this.treeListColumn1.Width = 0x73;
            this.repositoryItemComboBox1.AutoHeight = false;
            this.repositoryItemComboBox1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repositoryItemComboBox1.Name = "repositoryItemComboBox1";
            this.panelControl4.Controls.Add(this.btnDelJG);
            this.panelControl4.Controls.Add(this.btnAddChildJG);
            this.panelControl4.Controls.Add(this.btnAddJG);
            this.panelControl4.Controls.Add(this.btnQDWH);
            this.panelControl4.Controls.Add(this.simpleButton1);
            this.panelControl4.Dock = DockStyle.Top;
            this.panelControl4.Location = new Point(2, 2);
            this.panelControl4.Name = "panelControl4";
            this.panelControl4.Size = new Size(0x174, 0x1b);
            this.panelControl4.TabIndex = 2;
            this.btnDelJG.Dock = DockStyle.Left;
            this.btnDelJG.Location = new Point(0x7a, 2);
            this.btnDelJG.Name = "btnDelJG";
            this.btnDelJG.Size = new Size(50, 0x17);
            this.btnDelJG.TabIndex = 7;
            this.btnDelJG.Text = "删除";
            this.btnDelJG.Click += new EventHandler(this.btnDelJG_Click);
            this.btnAddChildJG.Dock = DockStyle.Left;
            this.btnAddChildJG.Location = new Point(0x3e, 2);
            this.btnAddChildJG.Name = "btnAddChildJG";
            this.btnAddChildJG.Size = new Size(60, 0x17);
            this.btnAddChildJG.TabIndex = 6;
            this.btnAddChildJG.Text = "新增下级";
            this.btnAddChildJG.Click += new EventHandler(this.btnAddChildJG_Click);
            this.btnAddJG.Dock = DockStyle.Left;
            this.btnAddJG.Location = new Point(2, 2);
            this.btnAddJG.Name = "btnAddJG";
            this.btnAddJG.Size = new Size(60, 0x17);
            this.btnAddJG.TabIndex = 5;
            this.btnAddJG.Text = "新增同级";
            this.btnAddJG.Click += new EventHandler(this.btnAddJG_Click);
            this.btnQDWH.Dock = DockStyle.Right;
            this.btnQDWH.Location = new Point(0xee, 2);
            this.btnQDWH.Name = "btnQDWH";
            this.btnQDWH.Size = new Size(0x42, 0x17);
            this.btnQDWH.TabIndex = 3;
            this.btnQDWH.Text = "标段清单";
            this.btnQDWH.Click += new EventHandler(this.btnQDWH_Click);
            this.simpleButton1.Dock = DockStyle.Right;
            this.simpleButton1.Location = new Point(0x130, 2);
            this.simpleButton1.Name = "simpleButton1";
            this.simpleButton1.Size = new Size(0x42, 0x17);
            this.simpleButton1.TabIndex = 4;
            this.simpleButton1.Text = "材料清单";
            this.simpleButton1.Click += new EventHandler(this.simpleButton1_Click);
            this.panel1.Controls.Add(this.labelControl31);
            this.panel1.Controls.Add(this.edtJGMC);
            this.panel1.Dock = DockStyle.Bottom;
            this.panel1.Location = new Point(2, 0x15f);
            this.panel1.Name = "panel1";
            this.panel1.Size = new Size(0x174, 0x24);
            this.panel1.TabIndex = 3;
            this.labelControl31.Location = new Point(14, 10);
            this.labelControl31.Name = "labelControl31";
            this.labelControl31.Size = new Size(0x30, 14);
            this.labelControl31.TabIndex = 0x3f;
            this.labelControl31.Text = "对应机构";
            this.edtJGMC.DataBindings.Add(new Binding("EditValue", this.bindingSource4, "JGMC", true));
            this.edtJGMC.Location = new Point(0x44, 7);
            this.edtJGMC.Name = "edtJGMC";
            this.edtJGMC.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo, "", -1, true, false, false, ImageLocation.MiddleCenter, null, new KeyShortcut(Keys.None), appearance, "", null, null, true), new EditorButton() });
            this.edtJGMC.Properties.Items.AddRange(new object[] { "", "黄冈模式调整" });
            this.edtJGMC.Properties.ReadOnly = true;
            this.edtJGMC.Size = new Size(300, 0x15);
            this.edtJGMC.TabIndex = 0x3e;
            this.edtJGMC.ButtonClick += new ButtonPressedEventHandler(this.edtJGMC_ButtonClick);
            this.imageList.ColorDepth = ColorDepth.Depth8Bit;
            this.imageList.ImageSize = new Size(0x10, 0x10);
            this.imageList.TransparentColor = Color.Transparent;
            this.xtraTabControl1.Dock = DockStyle.Top;
            this.xtraTabControl1.Location = new Point(0xdf, 0x17);
            this.xtraTabControl1.Name = "xtraTabControl1";
            this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1;
            this.xtraTabControl1.Size = new Size(0x3a6, 0xbf);
            this.xtraTabControl1.TabIndex = 0x19;
            this.xtraTabControl1.TabPages.AddRange(new XtraTabPage[] { this.xtraTabPage1 });
            this.xtraTabPage1.Controls.Add(this.labelControl33);
            this.xtraTabPage1.Controls.Add(this.labelControl32);
            this.xtraTabPage1.Controls.Add(this.textEdit15);
            this.xtraTabPage1.Controls.Add(this.labelControl27);
            this.xtraTabPage1.Controls.Add(this.textEdit11);
            this.xtraTabPage1.Controls.Add(this.lblDXJE);
            this.xtraTabPage1.Controls.Add(this.labelControl15);
            this.xtraTabPage1.Controls.Add(this.labelControl14);
            this.xtraTabPage1.Controls.Add(this.textEdit6);
            this.xtraTabPage1.Controls.Add(this.labelControl13);
            this.xtraTabPage1.Controls.Add(this.memoEdit2);
            this.xtraTabPage1.Controls.Add(this.labelControl8);
            this.xtraTabPage1.Controls.Add(this.textEdit1);
            this.xtraTabPage1.Controls.Add(this.labelControl7);
            this.xtraTabPage1.Controls.Add(this.textEdit2);
            this.xtraTabPage1.Controls.Add(this.labelControl6);
            this.xtraTabPage1.Controls.Add(this.textEdit3);
            this.xtraTabPage1.Controls.Add(this.labelControl5);
            this.xtraTabPage1.Controls.Add(this.dateEdit1);
            this.xtraTabPage1.Controls.Add(this.labelControl4);
            this.xtraTabPage1.Controls.Add(this.dateEdit2);
            this.xtraTabPage1.Controls.Add(this.labelControl3);
            this.xtraTabPage1.Controls.Add(this.textEdit4);
            this.xtraTabPage1.Controls.Add(this.labelControl2);
            this.xtraTabPage1.Controls.Add(this.textEdit5);
            this.xtraTabPage1.Controls.Add(this.labelControl1);
            this.xtraTabPage1.Name = "xtraTabPage1";
            this.xtraTabPage1.Size = new Size(0x39f, 0xa1);
            this.xtraTabPage1.Text = "项目基本信息";
            this.labelControl33.Location = new Point(0x2cd, 0x45);
            this.labelControl33.Name = "labelControl33";
            this.labelControl33.Size = new Size(0x18, 14);
            this.labelControl33.TabIndex = 50;
            this.labelControl33.Text = "公里";
            this.labelControl32.Location = new Point(0x24f, 0x45);
            this.labelControl32.Name = "labelControl32";
            this.labelControl32.Size = new Size(0x18, 14);
            this.labelControl32.TabIndex = 0x31;
            this.labelControl32.Text = "总长";
            this.textEdit15.DataBindings.Add(new Binding("EditValue", this.bindingSource2, "ZHZC", true));
            this.textEdit15.Location = new Point(0x26e, 0x42);
            this.textEdit15.Name = "textEdit16";
            this.textEdit15.Size = new Size(0x59, 0x15);
            this.textEdit15.TabIndex = 0x30;
            this.labelControl27.Location = new Point(0x24d, 0x2b);
            this.labelControl27.Name = "labelControl27";
            this.labelControl27.Size = new Size(0x30, 14);
            this.labelControl27.TabIndex = 0x2f;
            this.labelControl27.Text = "结束桩号";
            this.textEdit11.DataBindings.Add(new Binding("EditValue", this.bindingSource2, "JSZH", true));
            this.textEdit11.Location = new Point(0x283, 40);
            this.textEdit11.Name = "textEdit12";
            this.textEdit11.Size = new Size(0x62, 0x15);
            this.textEdit11.TabIndex = 0x2e;
            this.textEdit11.ParseEditValue += new ConvertEditValueEventHandler(this.textEdit11_ParseEditValue);
            this.lblDXJE.Location = new Point(0x12e, 0x5d);
            this.lblDXJE.Name = "lblDXJE";
            this.lblDXJE.Size = new Size(0x4d, 14);
            this.lblDXJE.TabIndex = 0x2d;
            this.lblDXJE.Text = "labelControl22";
            this.labelControl15.Location = new Point(0xf6, 0x5d);
            this.labelControl15.Name = "labelControl15";
            this.labelControl15.Size = new Size(0x30, 14);
            this.labelControl15.TabIndex = 0x2c;
            this.labelControl15.Text = "大写金额";
            this.labelControl14.Location = new Point(0x238, 0x45);
            this.labelControl14.Name = "labelControl14";
            this.labelControl14.Size = new Size(12, 14);
            this.labelControl14.TabIndex = 0x2b;
            this.labelControl14.Text = "天";
            this.textEdit6.DataBindings.Add(new Binding("EditValue", this.bindingSource2, "XMZGQ", true));
            this.textEdit6.Location = new Point(0x1df, 0x42);
            this.textEdit6.Name = "textEdit6";
            this.textEdit6.Properties.ReadOnly = true;
            this.textEdit6.Size = new Size(0x52, 0x15);
            this.textEdit6.TabIndex = 0x2a;
            this.labelControl13.Location = new Point(0x19d, 0x45);
            this.labelControl13.Name = "labelControl13";
            this.labelControl13.Size = new Size(60, 14);
            this.labelControl13.TabIndex = 0x29;
            this.labelControl13.Text = "项目总工期";
            this.memoEdit2.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.memoEdit2.CausesValidation = false;
            this.memoEdit2.DataBindings.Add(new Binding("EditValue", this.bindingSource2, "XMGK", true, DataSourceUpdateMode.OnPropertyChanged));
            this.memoEdit2.Location = new Point(0x68, 0x74);
            this.memoEdit2.Name = "memoEdit2";
            this.memoEdit2.Size = new Size(0x2a4, 0x26);
            this.memoEdit2.TabIndex = 0x20;
            this.labelControl8.Location = new Point(50, 0x76);
            this.labelControl8.Name = "labelControl8";
            this.labelControl8.Size = new Size(0x30, 14);
            this.labelControl8.TabIndex = 40;
            this.labelControl8.Text = "项目概况";
            this.textEdit1.DataBindings.Add(new Binding("EditValue", this.bindingSource, "XMBH", true));
            this.textEdit1.Enabled = false;
            this.textEdit1.Location = new Point(0x68, 13);
            this.textEdit1.Name = "textEdit1";
            this.textEdit1.Size = new Size(0x77, 0x15);
            this.textEdit1.TabIndex = 0x19;
            this.labelControl7.Location = new Point(4, 0x5e);
            this.labelControl7.Name = "labelControl7";
            this.labelControl7.Size = new Size(0x5e, 14);
            this.labelControl7.TabIndex = 0x27;
            this.labelControl7.Text = "计划总投资(万元)";
            this.textEdit2.DataBindings.Add(new Binding("EditValue", this.bindingSource, "XMMC", true));
            this.textEdit2.Enabled = false;
            this.textEdit2.Location = new Point(300, 13);
            this.textEdit2.Name = "textEdit2";
            this.textEdit2.Size = new Size(0x1b9, 0x15);
            this.textEdit2.TabIndex = 0x1a;
            this.labelControl6.Location = new Point(0x1a9, 0x2b);
            this.labelControl6.Name = "labelControl6";
            this.labelControl6.Size = new Size(0x30, 14);
            this.labelControl6.TabIndex = 0x26;
            this.labelControl6.Text = "开始桩号";
            this.textEdit3.DataBindings.Add(new Binding("EditValue", this.bindingSource2, "XMJSDW", true));
            this.textEdit3.Location = new Point(0x68, 40);
            this.textEdit3.Name = "textEdit3";
            this.textEdit3.Size = new Size(0x128, 0x15);
            this.textEdit3.TabIndex = 0x1b;
            this.labelControl5.Location = new Point(0xde, 0x45);
            this.labelControl5.Name = "labelControl5";
            this.labelControl5.Size = new Size(0x48, 14);
            this.labelControl5.TabIndex = 0x25;
            this.labelControl5.Text = "计划完工日期";
            this.dateEdit1.DataBindings.Add(new Binding("EditValue", this.bindingSource2, "JHKGRQ", true));
            this.dateEdit1.EditValue = null;
            this.dateEdit1.Location = new Point(0x68, 0x42);
            this.dateEdit1.Name = "dateEdit1";
            this.dateEdit1.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.dateEdit1.Properties.VistaTimeProperties.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.dateEdit1.Size = new Size(100, 0x15);
            this.dateEdit1.TabIndex = 0x1c;
            this.labelControl4.Location = new Point(0x1a, 0x45);
            this.labelControl4.Name = "labelControl4";
            this.labelControl4.Size = new Size(0x48, 14);
            this.labelControl4.TabIndex = 0x24;
            this.labelControl4.Text = "计划开工日期";
            this.dateEdit2.DataBindings.Add(new Binding("EditValue", this.bindingSource2, "JHWGRQ", true));
            this.dateEdit2.EditValue = null;
            this.dateEdit2.Location = new Point(300, 0x42);
            this.dateEdit2.Name = "dateEdit2";
            this.dateEdit2.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.dateEdit2.Properties.VistaTimeProperties.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.dateEdit2.Size = new Size(100, 0x15);
            this.dateEdit2.TabIndex = 0x1d;
            this.labelControl3.Location = new Point(50, 0x2b);
            this.labelControl3.Name = "labelControl3";
            this.labelControl3.Size = new Size(0x30, 14);
            this.labelControl3.TabIndex = 0x23;
            this.labelControl3.Text = "建设单位";
            this.textEdit4.DataBindings.Add(new Binding("EditValue", this.bindingSource2, "KSZH", true));
            this.textEdit4.Location = new Point(0x1df, 40);
            this.textEdit4.Name = "textEdit4";
            this.textEdit4.Size = new Size(0x65, 0x15);
            this.textEdit4.TabIndex = 30;
            this.textEdit4.ParseEditValue += new ConvertEditValueEventHandler(this.textEdit4_ParseEditValue);
            this.labelControl2.Location = new Point(0xf6, 0x10);
            this.labelControl2.Name = "labelControl2";
            this.labelControl2.Size = new Size(0x30, 14);
            this.labelControl2.TabIndex = 0x22;
            this.labelControl2.Text = "项目名称";
            this.textEdit5.DataBindings.Add(new Binding("EditValue", this.bindingSource2, "JHJTZ", true));
            this.textEdit5.Location = new Point(0x68, 0x5b);
            this.textEdit5.Name = "textEdit5";
            this.textEdit5.Properties.DisplayFormat.FormatString = "0.00";
            this.textEdit5.Properties.DisplayFormat.FormatType = FormatType.Numeric;
            this.textEdit5.Size = new Size(0x7a, 0x15);
            this.textEdit5.TabIndex = 0x1f;
            this.labelControl1.Location = new Point(50, 0x10);
            this.labelControl1.Name = "labelControl1";
            this.labelControl1.Size = new Size(0x30, 14);
            this.labelControl1.TabIndex = 0x21;
            this.labelControl1.Text = "项目编号";
            this.splitterControl1.Location = new Point(0xd9, 0x17);
            this.splitterControl1.Name = "splitterControl1";
            this.splitterControl1.Size = new Size(6, 0x25d);
            this.splitterControl1.TabIndex = 0x1a;
            this.splitterControl1.TabStop = false;
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize = new Size(0x485, 0x274);
            base.Controls.Add(this.groupControl4);
            base.Controls.Add(this.xtraTabControl1);
            base.Controls.Add(this.splitterControl1);
            base.Controls.Add(this.groupControl1);
            base.Controls.Add(this.plMsg);
            base.Name = "FrmGLYSZ";
            this.Text = "管理设置";
            base.WindowState = FormWindowState.Maximized;
            base.FormClosing += new FormClosingEventHandler(this.FrmGLYSZ_FormClosing);
            base.Load += new EventHandler(this.FrmGLYSZ_Load);
            this.plMsg.EndInit();
            this.plMsg.ResumeLayout(false);
            this.plMsg.PerformLayout();
            this.groupControl1.EndInit();
            this.groupControl1.ResumeLayout(false);
            this.tlXMXX.EndInit();
            ((ISupportInitialize) this.bindingSource).EndInit();
            this.dataSets1.EndInit();
            this.repositoryItemImageComboBox2.EndInit();
            ((ISupportInitialize) this.bindingSource1).EndInit();
            this.groupControl4.EndInit();
            this.groupControl4.ResumeLayout(false);
            this.xtraTabControl2.EndInit();
            this.xtraTabControl2.ResumeLayout(false);
            this.xtraTabPage2.ResumeLayout(false);
            this.panelControl5.EndInit();
            this.panelControl5.ResumeLayout(false);
            this.panelControl5.PerformLayout();
            this.comboBoxEdit.Properties.EndInit();
            ((ISupportInitialize) this.bindingSource3).EndInit();
            this.memoEdit6.Properties.EndInit();
            this.comboBoxEdit2.Properties.EndInit();
            this.memoEdit5.Properties.EndInit();
            this.comboBoxEdit1.Properties.EndInit();
            this.memoEdit4.Properties.EndInit();
            this.cboKHBLJ.Properties.EndInit();
            this.memoEdit3.Properties.EndInit();
            this.panelControl2.EndInit();
            this.panelControl2.ResumeLayout(false);
            this.panelControl2.PerformLayout();
            this.textEdit16.Properties.EndInit();
            ((ISupportInitialize) this.bindingSource2).EndInit();
            this.textEdit12.Properties.EndInit();
            this.textEdit.Properties.EndInit();
            this.HqeQbQlxEb.Properties.EndInit();
            this.textEdit7.Properties.EndInit();
            this.dateEdit3.Properties.VistaTimeProperties.EndInit();
            this.dateEdit3.Properties.EndInit();
            this.dateEdit4.Properties.VistaTimeProperties.EndInit();
            this.dateEdit4.Properties.EndInit();
            this.dateEdit5.Properties.EndInit();
            this.xtraTabPage3.ResumeLayout(false);
            this.memoEdit1.Properties.EndInit();
            this.panelControl6.EndInit();
            this.panelControl6.ResumeLayout(false);
            this.panelControl6.PerformLayout();
            this.textEdit14.Properties.EndInit();
            ((ISupportInitialize) this.bindingSource4).EndInit();
            this.textEdit13.Properties.EndInit();
            this.textEdit10.Properties.EndInit();
            this.textEdit8.Properties.EndInit();
            this.panelControl3.EndInit();
            this.panelControl3.ResumeLayout(false);
            this.tlZZJGXX.EndInit();
            this.repositoryItemLookUpEdit1.EndInit();
            this.repositoryItemComboBox1.EndInit();
            this.panelControl4.EndInit();
            this.panelControl4.ResumeLayout(false);
            this.panel1.ResumeLayout(false);
            this.panel1.PerformLayout();
            this.edtJGMC.Properties.EndInit();
            this.xtraTabControl1.EndInit();
            this.xtraTabControl1.ResumeLayout(false);
            this.xtraTabPage1.ResumeLayout(false);
            this.xtraTabPage1.PerformLayout();
            this.textEdit15.Properties.EndInit();
            this.textEdit11.Properties.EndInit();
            this.textEdit6.Properties.EndInit();
            this.memoEdit2.Properties.EndInit();
            this.textEdit1.Properties.EndInit();
            this.textEdit2.Properties.EndInit();
            this.textEdit3.Properties.EndInit();
            this.dateEdit1.Properties.VistaTimeProperties.EndInit();
            this.dateEdit1.Properties.EndInit();
            this.dateEdit2.Properties.VistaTimeProperties.EndInit();
            this.dateEdit2.Properties.EndInit();
            this.textEdit4.Properties.EndInit();
            this.textEdit5.Properties.EndInit();
            base.ResumeLayout(false);
        }

        private void method(object sender, DataTableNewRowEventArgs e)
        {
            string str = DHelp.GetObjValue(this.bindingSource, "ID", false);
            string str2 = Guid.NewGuid().ToString();
            e.Row["id"] = str2;
            e.Row["xmid"] = str;
            e.Row["mc"] = "";
            e.Row["jglx"] = 2;
            DataTable table = this.dataSet.Tables["ZZJGXXEX"];
            DataRow row = table.NewRow();
            row["id"] = str2;
            row.EndEdit();
            table.Rows.Add(row);
            DataTable table2 = this.dataSet.Tables["YHXX"];
            DataRow row2 = table2.NewRow();
            row2["id"] = Guid.NewGuid();
            row2["bdid"] = str2;
            row2.EndEdit();
            table2.Rows.Add(row2);
        }

        private void method1()
        {
            IDataAccess access = DBHelp.IniIDA();
            string exeStr = "delete from YHXX where BDID not in  (select id from ZZJGXX)and (yhmc <> 'admin' or YHMC is null)";
            access.ExecuteNonQuery(exeStr, CommandType.Text);
            this.dataSet.Merge(access.ExecuteDataSet("select * from XMJBXX", CommandType.Text, "XMJBXX"));
            this.dataSet.Merge(access.ExecuteDataSet("select  * from ZZJGXX", CommandType.Text, "ZZJGXX"));
            this.dataSet.Merge(access.ExecuteDataSet("select * from XMJBXXEX", CommandType.Text, "XMJBXXEX"));
            this.dataSet.Merge(access.ExecuteDataSet("select  * from ZZJGXXEX", CommandType.Text, "ZZJGXXEX"));
            this.dataSet.Merge(access.ExecuteDataSet("select  * from YHXX", CommandType.Text, "YHXX"));
            this.dataSet.Tables["ZZJGXX"].TableNewRow += new DataTableNewRowEventHandler(this.method);
            this.dataSet.Tables["XMJBXXEX"].ColumnChanged += new DataColumnChangeEventHandler(this.method6);
            this.dataSet.Tables["ZZJGXXEX"].ColumnChanged += new DataColumnChangeEventHandler(this.method5);
            this.bindingSource1.DataSource = this.dataSet.Tables["ZZJGXX"];
            this.bindingSource.DataSource = this.dataSet.Tables["XMJBXX"];
            this.bindingSource3.DataSource = this.dataSet.Tables["ZZJGXXEX"];
            this.bindingSource2.DataSource = this.dataSet.Tables["XMJBXXEX"];
            this.bindingSource4.DataSource = this.dataSet.Tables["YHXX"];
            this.bindingSource.PositionChanged += new EventHandler(this.bindingSource_PositionChanged);
            DataTable table1 = this.dataSet.Tables["ZZJGXX2"];
            DataTable table3 = this.dataSet.Tables["ZZJGXXEX"];
            this.method7();
            this.tlXMXX.ExpandAll();
            this.tlZZJGXX.ExpandAll();
            DataTable table = this.dataSet.Tables["XMJBXXEX"];
            if (table.Rows.Count > 0)
            {
                decimal num = CHelp.ConvertDecimal(this.dataSet.Tables["XMJBXXEX"].Rows[0]["JHJTZ"], 0, 0);
                this.lblDXJE.Text = RMBCapitalization.smethod(num);
            }
        }

        private void method10([Optional, DefaultParameterValue(false)] bool _flag, [Optional, DecimalConstant(0, 0, (uint) 0, (uint) 0, (uint) 0)] decimal dyyfkze, [Optional, DecimalConstant(0, 0, (uint) 0, (uint) 0, (uint) 0)] decimal qkebl)
        {
            DataRow dataRow = DHelp.GetDataRow(this.bindingSource3);
            BZGSKH bzgskh = null;
            if (_flag)
            {
                bzgskh = new BZGSKH();
                bzgskh.DYYFKZE = dyyfkze;
                bzgskh.QKEBL = qkebl;
            }
            else
            {
                bzgskh = new BZGSKH(dataRow["KDYYFKGS"].ToString());
            }
            string str = dataRow["id"].ToString();
            IDataAccess ida = DBHelp.IniIDA();
            string sql = string.Format("select sum(htje) as htje from jlqd where  bdid='{0}' and CJM=0", str);
            DataTable table = DBHelp.GetDt(ida, sql, "temp");
            if (!((table.Rows.Count <= 0) || table.Rows[0].IsNull("htje")))
            {
                bzgskh.HTZJ = Convert.ToDecimal(table.Rows[0][0]);
            }
            else
            {
                bzgskh.HTZJ = 0M;
            }
            sql = string.Format("select sum(htje) as htje from jlqd where (qdlx=2 and cjm=0) and bdid='{0}'", str);
            table = DBHelp.GetDt(ida, sql, "temp");
            if (!((table.Rows.Count <= 0) || table.Rows[0].IsNull("htje")))
            {
                bzgskh.ZDJE = Convert.ToDecimal(table.Rows[0][0]);
            }
            else
            {
                bzgskh.ZDJE = 0M;
            }
            bzgskh.QKE = CHelp.ConvertDecimal(((bzgskh.HTZJ - bzgskh.ZDJE) * bzgskh.QKEBL) / 100M, 0, 0);
            dataRow["KDYYFKGS"] = bzgskh.ToString();
            string format = "动员预付款总额:{0}(元)    起扣额:(合同总价－暂定金额)\x00d7{1}%={2}(元)\r\n说明：开工预付款在进度付款证书的累计金额未达到签约合同价的30%之前不予扣回，在达到签约合同价30%之后，开始按工程进度以固定比例(即每完成签约合同价的1%，扣回开工预付款的2%)分期从各月的进度付款证书中扣回，全部金额在进度付款证书的累计金额达到签约合同价的80%时扣完。";
            dataRow["KDYYFKLXBZ"] = string.Format(format, bzgskh.DYYFKZE, bzgskh.QKEBL, bzgskh.QKE);
            dataRow.EndEdit();
        }

        private void method11()
        {
            int num2;
            this.bindingSource3.EndEdit();
            DataRow dataRow = DHelp.GetDataRow(this.bindingSource3);
            object obj2 = dataRow["KDYYFKLX"];
            int num = 0;
            if (obj2.Equals(""))
            {
                num = 0;
                num2 = 0;
            }
            else
            {
                if (obj2.Equals("标准公式扣回"))
                {
                    num = 1;
                    num2 = 1;
                    goto Label_008B;
                }
                switch (num)
                {
                    case 0:
                        goto Label_0063;

                    case 1:
                        goto Label_008B;
                }
                return;
            }
        Label_0063:
            dataRow["KDYYFKGS"] = "";
            dataRow["KDYYFKLXBZ"] = "";
            dataRow.EndEdit();
            return;
        Label_008B:
            using (FrmKHDYYFK_BZGSKH mkhdyyfk_bzgskh = new FrmKHDYYFK_BZGSKH())
            {
                mkhdyyfk_bzgskh.IniForm(this.bindingSource3);
                if (mkhdyyfk_bzgskh.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    this.method10(true, mkhdyyfk_bzgskh.method(), mkhdyyfk_bzgskh.GetQKEBL());
                }
            }
        }

        private void method12()
        {
            int num2;
            this.bindingSource3.EndEdit();
            DataRow dataRow = DHelp.GetDataRow(this.bindingSource3);
            object obj2 = dataRow["KCLYYKLX"];
            int num = 0;
            if (obj2.Equals(""))
            {
                num = 0;
                num2 = 0;
            }
            else
            {
                if (obj2.Equals("隔期扣回"))
                {
                    num = 1;
                    num2 = 1;
                    goto Label_008B;
                }
                switch (num)
                {
                    case 0:
                        goto Label_0063;

                    case 1:
                        goto Label_008B;
                }
                return;
            }
        Label_0063:
            dataRow["KCLYYKGS"] = "";
            dataRow["KCLYYKLXBZ"] = "";
            dataRow.EndEdit();
            return;
        Label_008B:
            using (FrmGQKK mgqkk = new FrmGQKK())
            {
                mgqkk.IniForm(this.bindingSource3);
                mgqkk.ShowDialog();
            }
        }

        private void method13()
        {
            this.bindingSource3.EndEdit();
            DataRow dataRow = DHelp.GetDataRow(this.bindingSource3);
            object obj2 = dataRow["KHBLJLX"];
            if (obj2.Equals(""))
            {
                dataRow["KHBLJGS"] = "";
                dataRow["KHBLJLXBZ"] = "";
                dataRow.EndEdit();
            }
            else
            {
                using (FrmKHBLJ_BZGSKH mkhblj_bzgskh = new FrmKHBLJ_BZGSKH())
                {
                    mkhblj_bzgskh.IniForm(this.bindingSource3);
                    mkhblj_bzgskh.ShowDialog();
                }
            }
        }

        private void method14(bool _flag, string _str, string _str1)
        {
            DataTable table;
            DataRow row;
            if (_flag)
            {
                string str = _str;
                table = this.dataSet.Tables["ZZJGXX"];
                row = table.NewRow();
                row["pid"] = str;
                row["levelCode"] = _str1;
                row.EndEdit();
                table.Rows.Add(row);
            }
            else
            {
                table = this.dataSet.Tables["ZZJGXX"];
                row = table.NewRow();
                row["levelCode"] = _str1;
                row["pid"] = _str;
                row.EndEdit();
                table.Rows.Add(row);
            }
        }

        private string method15(string _str, string _str1)
        {
            string str = "";
            DataRow[] rowArray = null;
            rowArray = this.dataSet.Tables["ZZJGXX"].Select(string.Format("pid='{0}'", _str));
            int length = rowArray.Length;
            if (length.Equals(0))
            {
                return (_str1 + "001");
            }
            int num2 = 0;
            string o = "";
            int num3 = 0;
            foreach (DataRow row in rowArray)
            {
                str = row["levelCode"].ToString();
                num3 = str.Length;
                if (num3 > 3)
                {
                    o = str.Substring(num3 - 3, 3);
                }
                else
                {
                    o = row["levelCode"].ToString();
                }
                if (CHelp.ConvertInt(o, 0) > num2)
                {
                    num2 = CHelp.ConvertInt(o, 0);
                }
            }
            num2++;
            o = CHelp.ToAdd0(num2.ToString(), 3);
            return (_str1 + o);
        }

        private DataTable method2()
        {
            if (this.dataTable == null)
            {
                try
                {
                    IDataAccess ida = Class38.smethod();
                    string sql = "select ID,PID,OrgName as JGMC from OrgInfoes";
                    this.dataTable = DBHelp.GetDt(ida, sql, "BSJG");
                }
                catch (Exception exception)
                {
                    Log.Write(exception.Message);
                }
            }
            return this.dataTable;
        }

        private bool method3()
        {
            this.textEdit4.Focus();
            this.bindingSource1.EndEdit();
            this.bindingSource3.EndEdit();
            this.bindingSource2.EndEdit();
            this.bindingSource4.EndEdit();
            if (this.dataSet.HasChanges())
            {
                IDataAccess access = DBHelp.IniIDA();
                access.OpenDatabase();
                access.BeginTrans();
                try
                {
                    access.Update(this.dataSet, true);
                    access.Commit();
                    this.lblMsg.Visible = true;
                    return true;
                }
                finally
                {
                    access.CloseDatabase();
                }
            }
            return false;
        }

        private bool method4()
        {
            this.method3();
            return Class37.smethod1().imethod_0();
        }

        private void method5(object sender, DataColumnChangeEventArgs e)
        {
            if (e.Column.ColumnName.Equals("JHKGRQ") || e.Column.ColumnName.Equals("JHWGRQ"))
            {
                TimeSpan span = (TimeSpan) (CHelp.ConverDateTime(e.Row["JHWGRQ"], false) - CHelp.ConverDateTime(e.Row["JHKGRQ"], false));
                e.Row["XMGQ"] = span.Days + 1;
                e.Row.EndEdit();
            }
        }

        private void method6(object sender, DataColumnChangeEventArgs e)
        {
            if (e.Column.ColumnName.Equals("JHJTZ"))
            {
                decimal num = CHelp.ConvertDecimal(e.Row["JHJTZ"], 0, 0);
                this.lblDXJE.Text = RMBCapitalization.smethod(num);
            }
            else if (e.Column.ColumnName.Equals("JHKGRQ") || e.Column.ColumnName.Equals("JHWGRQ"))
            {
                TimeSpan span = (TimeSpan) (CHelp.ConverDateTime(e.Row["JHWGRQ"], false) - CHelp.ConverDateTime(e.Row["JHKGRQ"], false));
                e.Row["XMZGQ"] = span.Days + 1;
                e.Row.EndEdit();
            }
        }

        private void method7()
        {
            string str = DHelp.GetObjValue(this.bindingSource, "ID", false);
            this.bindingSource1.Sort = "XMID";
            this.bindingSource1.Filter = "XMID='" + str + "'";
            this.bindingSource2.Filter = "id='" + str + "'";
        }

        private void method8(object sender, EventArgs e)
        {
            this.method3();
        }

        private void method9()
        {
            int num2;
            string str = "调整公式：YJE=YL(JG1-JG0)\x00d7(1+3.41%)\r\n说明：YJE-钢材、燃油料或水泥的调价额；YL-钢材、燃油料或水泥计算期内用量；JG0-钢材、燃油料或水泥基期价格；  JG1-钢材、燃油料或水泥当期价格";
            this.bindingSource3.EndEdit();
            DataRow dataRow = DHelp.GetDataRow(this.bindingSource3);
            object obj2 = dataRow["JGTZLX"];
            int num = 0;
            if (obj2.Equals(""))
            {
                num = 0;
                num2 = 0;
            }
            else
            {
                if (obj2.Equals("黄冈模式调整"))
                {
                    num = 1;
                    num2 = 1;
                    goto Label_0095;
                }
                switch (num)
                {
                    case 0:
                        goto Label_006D;

                    case 1:
                        goto Label_0095;
                }
                return;
            }
        Label_006D:
            dataRow["JGTZGS"] = "";
            dataRow["JGTZLXBZ"] = "";
            dataRow.EndEdit();
            return;
        Label_0095:
            dataRow["JGTZGS"] = "YJE=YL(JG1-JG0)*(1+3.41%)";
            dataRow["JGTZLXBZ"] = str;
            dataRow.EndEdit();
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            TreeListNode focusedNode = this.tlZZJGXX.FocusedNode;
            if (!((int) Convert.ToInt16(focusedNode[2])).Equals(2))
            {
                MsgBox.ShowMsg("当前选择不是标段，请重新选择！");
            }
            else
            {
                string bdid = focusedNode[0].ToString();
                string xmid = focusedNode[3].ToString();
                FrmCLQD mclqd = new FrmCLQD();
                mclqd.CLDFBL = CHelp.ConvertDecimal(DHelp.GetObjValue(this.bindingSource3, "CLDFBL", false), 1, 2);
                mclqd.IniData(xmid, bdid);
                if (mclqd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    this.method3();
                }
            }
        }

        private void textEdit11_ParseEditValue(object sender, ConvertEditValueEventArgs e)
        {
            e.Value = Class28.smethod15(e.Value.ToString());
        }

        private void textEdit12_ParseEditValue(object sender, ConvertEditValueEventArgs e)
        {
            e.Value = Class28.smethod15(e.Value.ToString());
        }

        private void textEdit4_ParseEditValue(object sender, ConvertEditValueEventArgs e)
        {
            e.Value = Class28.smethod15(e.Value.ToString());
        }
    }
}

